updating oE create_file

create_file

include filesys.e 
namespace filesys 
public function create_file(sequence name) 

Create a new file.

Parameters:
  1. name : a sequence, the name of the new file to create
Returns:

An integer, 0 on failure, 1 on success.

Comments:
  • The created file will be empty, that is it has a length of zero.
  • The created file will not be open when this returns.
Example 1:
if not create_file("the_new_file") then 
	crash("Filesystem problem - could not create the new file") 
end if 
See Also:

create_directory

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu